//
// Created by 30938 on 2022/8/26.
//

#ifndef PROJECT_INIPARSE_H
#define PROJECT_INIPARSE_H
#include <unordered_map>
#include <string>

using namespace std;

class IniParse {
public:
    string strip(const string &str);
    IniParse(const string& path);
    unordered_map<string,string> getSection(const string& section);
    string grtValue(const string& section,const string& option);
    unordered_map<string,unordered_map<string,string>> getData();

private:
    unordered_map<string,unordered_map<string,string>> data;
};


#endif //PROJECT_INIPARSE_H
